package net.maku.im.convert;

import net.maku.im.entity.ImUserEntity;
import net.maku.im.vo.ImUserVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
* IM用户
*
* @author Blue 
* @since 1.0.0 2024-07-14
*/
@Mapper
public interface ImUserConvert {
    ImUserConvert INSTANCE = Mappers.getMapper(ImUserConvert.class);

    ImUserEntity convert(ImUserVO vo);

    ImUserVO convert(ImUserEntity entity);

    List<ImUserVO> convertList(List<ImUserEntity> list);

}